﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace class2
{
    class Square:Shape
    {
        public double SideLen { get; set; }

        public Square() { }
        public Square(double sideLen)
        {
            SideLen = sideLen;
        }
        public override void GetArea()
        {
            base.GetArea();
            Console.WriteLine("正方形的面积为：" + SideLen * SideLen);
        }
    }
}
